<?php
// @formatter:off
/**
 * @file WCTool.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-06-22 17:58:11 +0000 (Sat, 22 Jun 2013) $
 *
 * $Id: WCTool.php 83 2013-06-22 17:58:11Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0-BETA2/includes/WCTool.php $
 */
// @formatter:on

/**
 * @class WCTool
 * @abstract
 */
class WCTool {
	/**
	 * @var WCConnection
	 */
	protected $_db = null;
	protected $_dbprefix = "";

	protected $_optionsLoaded = false;
	protected $_options = array();
	protected $_sets = array();
	/**
	 * @var boolean
	 */
	protected $_jumpAnalysis = false;

	public function __construct() {
		global $wcDatabaseAccess;

		$this->_db = WCConnection::Instance();
		$this->_dbprefix = $wcDatabaseAccess['prefix'];

		$this->loadOptions();
	}
	public function __destruct() {
	}
	//
	// Public methods.
	public function run($spacer = "") {
		die(__CLASS__."::".__FUNCTION__."() Subclass Resposabillity\n");
	}
	public function checkParams($options = null) {
		global $wcOptions;
		$wcOptions->check($options);
	}
	public function showHelp($spacer = "") {
		die(__CLASS__."::".__FUNCTION__."() Subclass Resposabillity\n");
	}
	//
	// Protected methods.
	protected function loadOptions() {
		die(__CLASS__."::".__FUNCTION__."() Subclass Resposabillity\n");
	}
}
?>